import request from './request'

// 轮播图的接口
export const getBanner = () => request({
  url: '/banner'
})
// 点击切换分类的接口
export const getClassify = (id) => request({
  url: `/product-categories/${id}`,
})
// 获取分类列表
export const getClassifyList = (id) => request({
  url: `/product-categories/`,
})

// 关于的接口
export const getAboutList = () => request({
  url: `/about`,
})

// 获取首页的底部产品
export const getProducts = (params) => request({
  url: `/products`,
  params: params
})

// 获取首页的数据

export const getHome = () => request({
  url: '/home'
})

// 获取详情的接口

export const getDetail = (id) => request({
  url: `/products/${id}`
})
